#include "Supermarket.h"
#include "CustomerManager.h"

#include <iostream>

using namespace std; 

void Supermarket::reciveCustomer(Customer* client)
{
  cout << "Arrive Time :" << _timer->getCurrentTime() << endl;
  myCasher.addCustomer(client);
  myCasher.printState();
}


void Supermarket::update(Observable* obs)
{
  CustomerManager* cust = (CustomerManager*)obs;
  reciveCustomer(cust->getNewCustomer());
}
